package com.youhome.service.mapper;

import com.youhome.service.model.ZipCode;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface ZipCodeMapper {
    int deleteByPrimaryKey(String zip);

    int insert(ZipCode record);

    int insertSelective(ZipCode record);

    ZipCode selectByPrimaryKey(String zip);

    ZipCode selectShortByPrimaryKey(String zip);

    Set<ZipCode> selectShortByBean(ZipCode record);

    Set<String> selectCountyByBean(ZipCode record);

    int updateByPrimaryKeySelective(ZipCode record);

    int updateByPrimaryKey(ZipCode record);
}